var http = require('http')
    , mysql = require('mysql');

var connection = mysql.createConnection({
  host: '172.17.0.202',
  user: 'test',
  password: 'test',
  database: 'lotus'
});

connection.connect();

connection.query('SELECT * FROM product LIMIT 1', function(err, rows, fields) {
  console.dir( rows );
});

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello qaasddasd\n');
}).listen(1337, '127.0.0.1');

console.log('Server running at http://127.0.0.1:1337/');
